package com.example.userservice.entity;

import java.io.Serial;
import java.util.Date;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * (Userinfo)表实体类
 *
 * @author makejava
 * @since 2024-03-23 13:38:35
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("userinfo")
public class Userinfo implements Serializable{
    @Serial
    private static final long serialVersionUID = -8332773982245058713L;
    //主键@TableId
    @TableId(type = IdType.AUTO)
    private Long uid;

    //用户名(唯一)
    private String username;
    //密码
    private String password;
    //邮箱
    private String email;
    //头像
    private String photo;
    //创建时间
    private Date createtime;
    //修改时间
    private Date updatetime;
    //是否是管理员
    private Integer manager;

}

